<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix'        => 'admin/album',
    'namespace'     => 'Beerus\\Modules\\Album\\Controllers',
    'middleware'    => [
        'web',
        'admin',
    ],
], function (Router $router) {
    //清单管理相关
    $router->get('/index', 'AlbumIndexController@index')->name('album_index.index');
    $router->get('/index/create', 'AlbumIndexController@create')->name('album_index.create');
    $router->post('/index/save', 'AlbumIndexController@save')->name('album_index.save');
    $router->post('/index/act', 'AlbumIndexController@act')->name('album_index.act');

    // 推荐清单管理
    $router->get('/recommend/index', 'AlbumRecommendController@index')->name('album_recommend.index');
    $router->get('/recommend/create', 'AlbumRecommendController@create')->name('album_recommend.create');
    $router->post('/recommend/save', 'AlbumRecommendController@save')->name('album_recommend.save');


    //获取所有的内容标签分类
    $router->get('albumcheck', 'AlbumCheckController@index');
    $router->get('albumcheck/content/labelList', 'AlbumCheckController@labelList');
    //内容标签的添加
    $router->post('albumcheck/content/labelSubmit', 'AlbumCheckController@labelSubmit');
    $router->get('/quality/{album_id}/{type}/{score}', 'AlbumCheckController@editScore');
    $router->get('albumcheck/content/labelList', 'AlbumCheckController@labelList');
    //内容标签的添加
    $router->post('albumcheck/content/labelSubmit', 'AlbumCheckController@labelSubmit');
    $router->get('/quality/{album_id}/{type}/{score}', 'AlbumCheckController@editScore');

    $router->get('/albumcheck/copy/{album_id}','AlbumCheckController@copyUrl');//复制H5链接

    $router->get('/albumcheck/export', 'AlbumCheckController@export');//导出

    $router->get('/whitelist/index','AlbumUserWhiteListController@index')->name('album_whitelist.index');;//白名单用户列表
    $router->get('/whitelist/create','AlbumUserWhiteListController@create')->name('album_whitelist.create');;//添加白名单用户的页面
    $router->post('/whitelist/save','AlbumUserWhiteListController@save')->name('album_whitelist.save');;//白名单用户

    //清单分类管理相关
    $router->get('/category/index','AlbumCateGoryController@index')->name('album_category.index');;//分类列表
    $router->put('/category/index/{id}','AlbumCateGoryController@indexPost')->name('album_category.index_post');
    $router->post('/category/sort', 'AlbumCateGoryController@sort')->name('album_category.sort'); //排序

    $router->get('/category/create','AlbumCateGoryController@create')->name('album_category.create');//创建分类
    $router->post('/category/save','AlbumCateGoryController@save')->name('album_category.save');//创建分类- 保存
    $router->post('/category/act', 'AlbumCateGoryController@act')->name('album_category.act');

    //清单标签的映射关系 6.9[https://confluence.haohaozhu.me/pages/viewpage.action?pageId=313622707]
    $router->get('/tagMapping/index','AlbumTagClassifyMappingController@index')->name('album_tag_classify_mapping.index');//标签映射列表
    $router->get('/tagMapping/create','AlbumTagClassifyMappingController@create')->name('album_tag_classify_mapping.create');
    $router->post('/tagMapping/save','AlbumTagClassifyMappingController@save')->name('album_tag_classify_mapping.save');

});
